Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vil 83 #992

Merged
merged 13 commits into from
Oct 7, 2024
Merged

Vil 83 #992

merged 13 commits into from
Oct 7, 2024

Conversation

Benjyhy
Copy link
Collaborator

@Benjyhy Benjyhy commented Oct 7, 2024

Motivation

Created the first 3 statistics cards of the "En famille" part in the Village Dashboard.
The first filter asks you to select a country, while the second asks you to select a village from that given country.

Changes

Modified the village controller so that he can accept a query string ?countryIsoCode=X for example.
The useVillage hook has also been modified in that way.
The VillageStats component now renders for a given village :

  • Nombre de familles connectées
  • Nombre de codes enfant créés
  • Nombre de profs ayant créé des comptes famille
    I created 3 queries in server/stats/villageStats.ts in order to fill those cards.
    Brief review on the stylesheets for the statistics part + responsive.

Test

As an admin user, you can visit the "Analyser" tab. Then navigate to "Village-monde" et select "En famille". You should see the correct statistics. You may need to create a teacher and some students if you've not already done it in your local environment.

@guillaume-pages guillaume-pages merged commit 9dc4105 into master Oct 7, 2024
6 checks passed
@guillaume-pages guillaume-pages deleted the VIL-83 branch October 7, 2024 08:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants